package com.ilia.util.timer.impl;


import com.ilia.util.timer.ITimer;

public class SimpleTimer implements ITimer {
private long startTime = -1;
private long endTime;

public void startTimer(String timerName)
{
if (startTime==-1) {
startTime = System.currentTimeMillis();
}


}
public void stopTimer(String timerName){
endTime = System.currentTimeMillis();
}

public String toString() {
return "SimpleTimer:"+(endTime-startTime);

}

}

